<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="description" content="Description">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
    <script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>
    <style>
    </style>
</head>
<body>
<nav>
    <a href="#/">文档</a>
    <a href="#/">示例</a>
</nav>
<div id="app"></div>
<script>
    window.$docsify = {
        name: 'Promptulate',
        repo: 'https://github.com/Undertone0809/promptulate',
        // logo: '/images/logo.svg',
        loadNavbar: true,
        loadSidebar: true,
        subMaxLevel: 3,
        coverpage: true,
        search: {
            paths: 'auto',
            placeholder: 'Search',
            noData: 'Not Found',
            depth: 3,
        },
        count: {
            countable: true,
            fontsize: '0.9em',
            color: 'rgb(90,90,90)',
            language: 'english'
        },
        plugins: [
            EditOnGithubPlugin.create(
                'https://github.com/Undertone0809/promptulate/tree/main/docs/',
                null,
                function (file) {
                    if (file.indexOf('en') === -1) {
                        return '编辑文档'
                    } else {
                        return 'edit on github'
                    }
                }
            ),
            function (hook) {
                var footer = [
                    '<hr/>',
                    '<footer>',
                    '<span><a href="https://github.com/Undertone0809/">Promptulate/Zeeland</a> &copy;2023.</span>',
                    '<span>Published with <a href="https://github.com/QingWei-Li/docsify" target="_blank">docsify</a>.</span>',
                    '</footer>'
                ].join('')

                hook.afterEach(function (html) {
                    return html + footer
                })
            },
        ]

    }
</script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">

<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script>
    var gitalk = new Gitalk({
        clientID: '0b1cb7e36ac5fa3233ba',
        clientSecret: '4148c415d7ed173e3dcffc861b9ac3eea79fbdbb',
        repo: 'promptulate',
        owner: 'Undertone0809',
        admin: ['Undertone0809'],
        title: `Document comment ${location.hash.match(/#(.*?)([?]|$)/)[1]}`,
        id: location.hash.match(/#(.*?)([?]|$)/)[1],
    })
    // Listen for changes in hash in the URL. If an MD file is found to have changed,
    // refresh the page to solve the problem of using a single digital comment issue for the entire website.
    window.onhashchange = function (event) {
        if (event.newURL.split('?')[0] !== event.oldURL.split('?')[0]) {
            location.reload()
        }
    }
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<!-- search plugin -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!-- image zoom plugin -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!-- copy code plugin -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-python.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
</body>
</html>
